//@ts-nocheck
import React from '../../react';
import ReactDOM from '../../react-dom';

const onClick = (syntheticEvent) => {
  console.log(syntheticEvent);
  syntheticEvent.persist(); // ← 如果不调用, 则只有↑有值
  setInterval(() => {
    console.log(syntheticEvent);
  }, 1000);
};
const element = (
  <button id="sayHello" onClick={onClick}>
    say <span color="red" style={{color:'red'}}>hello</span>
  </button>
);

ReactDOM.render(
  element,
  document.getElementById('root')
);
